﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Rename.UC
{
    public class UcButton:Button
    {
        public UcButton() {
            BackColor = System.Drawing.Color.Transparent;
            FlatStyle = FlatStyle.Flat;
            FlatAppearance.BorderSize = 0;
            FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
            FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
            Margin = new Padding(0);
            Image = global::Rename.Properties.Resources.开始命名;
            Size = new System.Drawing.Size(110, 44);
            MouseEnter += OnMouseEnter;
        }

        private void OnMouseEnter(object sender, EventArgs e)
        {
            Cursor = Cursors.Hand;
        }
    }
}
